#include "StdAfx.h"
#include "cprintbase.h"
#include "resource.h"
#include "CPrintDialogCustom.h"


CPrintBase::CPrintBase(void)
{
}

CPrintBase::~CPrintBase(void)
{
}

CPrintBase::CPrintBase(CCharplanDoc* doc)
{
    Create(doc);
}

void CPrintBase::Create(CCharplanDoc* doc)
{
    mpc_doc = doc;
}

BOOL CPrintBase::OnPreparePrinting(CPrintInfo* pInfo)
{
    UNREFERENCED_PARAMETER(pInfo);
    // replace the standard CPrintDialog with our custom one!
//    delete pInfo->m_pPD ; // release previous MFC allocated dialog object
//    pInfo->m_pPD = new CPrintDialogCustom(false) ;
//    pInfo->m_pPD->m_pd.nMinPage = 1 ;
//    pInfo->m_pPD->m_pd.nMaxPage = 0xffff ;
//    pInfo->m_pPD->m_pd.hInstance = AfxGetInstanceHandle() ;
//    pInfo->m_pPD->m_pd.lpPrintTemplateName = MAKEINTRESOURCE(IDD_PRINTDLG) ;
//    pInfo->m_pPD->m_pd.Flags |= PD_ENABLEPRINTTEMPLATE ;

    return TRUE;
}


void CPrintBase::OnPrint(CDC* pDC, CPrintInfo* pInfo)
{
    UNREFERENCED_PARAMETER(pDC);
    UNREFERENCED_PARAMETER(pInfo);
}

void CPrintBase::OnEndPrinting(CDC* pDC, CPrintInfo* pInfo)
{
    UNREFERENCED_PARAMETER(pDC);
    UNREFERENCED_PARAMETER(pInfo);
}

void CPrintBase::OnEndPrintPreview(CDC* pDC, CPrintInfo* pInfo, POINT point, CPreviewView* pView)
{
    UNREFERENCED_PARAMETER(pDC);
    UNREFERENCED_PARAMETER(pInfo);
    UNREFERENCED_PARAMETER(point);
    UNREFERENCED_PARAMETER(pView);
}

void CPrintBase::OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo)
{
    UNREFERENCED_PARAMETER(pDC);
    UNREFERENCED_PARAMETER(pInfo);
}

